Method and system for noise reduction in an image

ABSTRACT

In a specific embodiment of the present disclosure, a source image is smoothed to create a smoothed image, and an edge detector is used to create an edge layer. A blending controller is used to control a blending between the source image and the smoothed image. The blended destination image maintains detail while eliminating unwanted noise.

BACKGROUND

Video images, and especially analog video signals can be corrupted by varied types of temporal and spatial noise during acquisition, transmission, and recording of the image. Typical types of noise include thermal noise, single frequency modulation distortion noise, and impulse noise. Noise reduction techniques that apply linear or non-linear filters on video signals can reduce the amount of noise. One such technique is to apply a low-pass filter on the video signal. However, simple low-pass filtering tends to produce over-smoothed video that appears blurry. Other filters such as Wiener filters, Kalman filters are better at removing one or more of spatial noise or temporal noise but can be expensive in terms of implementation and device costs.

Therefore, a method of noise reduction that overcomes these problems would be useful.

FIELD OF THE DISCLOSURE

The present disclosure relates to data processing, and more specifically to image and video processing.

BRIEF DESCRIPTION OF THE DRAWINGS

The present disclosure may be better understood, and its features and advantages made apparent to those skilled in the art by referencing the accompanying drawings.

FIG. 1 represents, in flow diagram form, a method in accordance with the present disclosure;

FIG. 2 represents, in block diagram form, a system in accordance with a specific embodiment of the present disclosure.

FIG. 3 represents Boolean edge data in accordance with a specific embodiment of the present disclosure;

FIG. 4 represents weighted edge data in accordance with a specific embodiment of the present disclosure;

FIG. 5 represents, in flow diagram form, a method of blending accordance with a specific embodiment of the present disclosure;

FIGS. 6 and 7 represent, in flow diagram form, methods in accordance with specific embodiments of the present disclosure;

FIG. 8 represents, in block diagram form, a system in accordance with the present disclosure; and

FIG. 9 represents an intermediate data in accordance with a specific embodiment of the present disclosure.

The use of the same reference symbols in different drawings indicates similar or identical items.

DESCRIPTION OF THE PREFERRED EMBODIMENT(S)

In a specific embodiment of the present disclosure, a source image is smoothed to create a smoothed image, and an edge detector is used to create an edge layer. A blending controller is used to control a blending between the source image and the smoothed image. The blended destination image maintains detail while eliminating unwanted noise. Specific implementations of the present disclosure are better understood with reference to FIGS. 1-8.

FIG. 1 illustrates in flow diagram form a method in accordance with the present disclosure. The method of FIG. 1 is discussed with reference to the system of FIG. 2, which illustrates in block diagram form data flow through a system 100 in accordance with the present disclosure.

System 100 comprises noise filter 140, edge detector 150 and blending controller 160. In addition, system 100 includes memory (not specifically shown) for storing image information including source image 112, smoothed layer 120, edge layer 130, and destination layer 135. The layers are accessible by the noise filter 140, edge detector 150 and blending controller 160.

A first image layer is received at step 11. Referring to FIG. 2, source layer 117 is an example of such a first image layer. The source layer 117 is one of three component layers, along with layers 115 and 116, which make up the source image 112. Examples of types of component layers 115-117 include RGB component layers, YUV component layers, and component layers of any other color spaces. The system 100 receives source image 112 by receipt of a video stream or by accessing a memory location.

The source providing the source image can be a head end device, a TV receiver, a Video Cassette Recorder, a DVD (Digital Versatile Disk) player, or other video sources.

Upon receipt of the source image 112, each image layer 115-117 is processed independently. For purposes of discussion, data flow with respect to FIGS. 1 and 2 will be discussed with respect to one of the source layers, source layer 117. In addition, it will be appreciated that the layer information may be stored and processed as frames or partial frames, such as line buffers depending upon a systems specific implementation. For ease of discussion, it will be assumed the image information is stored as entire frames.

At step 12, a first edge layer is determined based on the first image layer. With reference to FIG. 2, source layer 117 is processed by the edge detector 150 to determine the edge layer 130.

The edge layer 130 comprises a plurality of memory locations corresponding to the plurality of pixels of an image. The edge layer 130 contains a pixel edge indicator for each pixel that indicates whether a pixel is associated with an edge of an image. In one embodiment, a pixel edge indicator is a Boolean representation indicating the presence or absence of an edge. For example, a positive Boolean pixel edge indicator would indicate that a specific pixel is part of an image edge.

The edge detector 150 can detect edges by determining a gradient for each pixel location. For example, the horizontal and vertical gradient of a pixel can be calculated using the equations Grad _(—) x=p(i+1,j)−p(i−1,j); and Grad _(—) y=p(i,j+1)−p(i,j−1).

A rectangular-to-polar conversion, such as M(i,j)=SQRT(Grad_x²+grad_y²), can then be performed to get a magnitude of the edge. Alternatively, the square root operation can be removed and the magnitude compared to a predefined edge-level that controls what is considered an edge, and ultimately controls how many details will be preserved in a final destination layer. For example, if the magnitude is larger than the predefined value of the edge-level, then the corresponding pixel is said to be an edge pixel. In other embodiments, the edge detector 150 can determine the presence of an edge solely based on a pixel's horizontal or vertical edge component.

FIG. 3 represents a portion 212 of a Boolean edge layer that contains Boolean pixel edge indicators. The 10 by 10 matrix of FIG. 3 represents the top left-most pixels of an image layer. For purposes of illustration, a “1” value indicates that the pixel at that location has been identified as an edge pixel, while a “0” value indicates that the pixel at that location has been identified as not being an edge pixel. In an alternate embodiment, the edge layer 130 can contain weighted edge indicators, as illustrated in FIG. 4.

FIG. 4 illustrates a portion of a weighted edge layer 214 that contains weighted edge indicators. The specific implementation of FIG. 4 assigns a weighted value to a pixel by determining a number of Boolean pixel edge indicators within +/−1 pixels of the pixel and storing this value in the lower four-bits of a data byte, and storing in the upper four-bits of the data byte the number of Boolean pixel edge indicators that are at +/−two pixels from the pixel. The number of Boolean pixel edge indicators in layer 212 that are at +/−two pixels from the pixel can be calculated by determining the number Boolean pixel edge indicators that are within +/−two pixels from the pixel and subtracting the number of Boolean pixels edge indicators that are +/−1 pixel from the pixel.

For example, the number of Boolean edge pixels in layer 212 within +/− pixels of pixel P(4,4) is indicated by the value 5 in layer 114. This value is stored in the lower 4-bits of the pixel P(4,4) in the weighted edge layer 214. The number of edge pixels within the box 203 of Boolean edge layer 212 is 12. The number of these pixels that are two pixels away from the pixel location P(4,4) is determined by subtracting the number of edge pixels within the box 201 from the edge pixels within the box 212, which results in a value of 7. This value is stored in the upper 4-bits of pixel P(4,4) in layer 211. Therefore the weighted pixel value of pixel P(4,4) is “75”. It will be appreciated that many other schemes for determining and/or storing weighted edge values are possible.

Returning to FIG. 1, at step 13 the first image layer is blended with a first other layer based upon the first edge layer. In one embodiment, the first other layer is the source layer 117.

The blending controller 160 of FIG. 2 is used to implement the blending, and uses information of edge layer 130 to blend the source layer 117 with the smoothed layer 120 to preserve edges and fine structures in the source image layer 117. When the edge layer contains only Boolean edge information one of two blending ratios can be implemented by the blending controller 160 at each pixel location. However, typically, the ability to blend a pixel based on one of only two blending ratios will not provide enough blending options to provide a destination image with an enhanced image.

To provide additional levels of blending, a weighted edge layer, such as is illustrated in FIG. 4 can be used by the blending controller 160 to select one of more than two blending ratios with respect to the blending of a specific pixel. FIG. 5 discloses a specific blending method for use with weighted edge values.

At step 302, a determination is made whether the pixel edge value labeled WEIGHT1 is greater than a variable T1. WEIGHT1 represent the number of edge pixels within +/−1 pixel of the pixel being scaled. With respect to FIG. 4, this would be the value stored at the lower 4 bits of a pixel location. If WEIGHT1 is greater than threshold T1, flow proceeds to step 322, where the source image pixel is copied directly to the destination layer, such as destination layer 135. Otherwise, flow proceeds to step 303.

At step 303, a determination is made whether the pixel edge value WEIGHT1 is greater than T2. If so, flow proceeds to step 323, where the source image pixel is blended with the smoothed image at a ratio of 3:1. Otherwise, flow proceeds to step 304.

At step 304, a determination is made whether the pixel edge value WEIGHT1 is greater than T3. If so, flow proceeds to step 3:1, where the source image pixel is blended with the smoothed image at a ratio of 1:1. Otherwise, flow proceeds to step 305.

At step 305, a determination is made whether the pixel edge value labeled WEIGHT2 is greater than a variable T4. WEIGHT2 represent the number of edge pixels at +/−2 pixels of the pixel being scaled. With respect to FIG. 4, this would be the value stored at the upper 4 bits of a pixel location. If WEIGHT2 is greater than the value of X4 flow proceeds to step 325, where the source image pixel is blended with the smoothed image at a ratio of 1:3. Otherwise, flow proceeds to step 326.

At step 326, the destination pixel is set equal to the smoothed pixel.

At step 306, a determination is made whether there is another pixel. If so, flow proceeds to step 302 to process the next pixel, otherwise the flow ends.

The variables T1, T2, T3, and T4 are predetermined, and as such can be preset or user defined variables. In another embodiment, the variables T1 through T4 can be statistically determined based upon the source image. In a specific embodiment, the variables T1 to T4 are set to 7, 3, 1, and 3 respectively.

FIG. 6 illustrates another method in accordance with an embodiment of the present disclosure.

At step 21, a first image layer of an image is received. In a manner similar to step 11 of FIG. 1.

At step 22, the first other layer is determined. Typically, the first other layer is determined by noise filter 140, which filters the source layer to provide a smoothed image. Noise filter 140 can be any type of noise filter, but will typically be either a low-pass filter or median filter depending upon the cost-performance ratio considerations of system 100. In one embodiment, a low-pass filter consisting of a five-tap horizontal filter and a five-tap vertical filter is used. Different coefficients can be used depending upon a desired noise level. In one embodiment, three noise levels implemented by the noise filters have cut-off frequencies of 0.7 fs, 0.5 fs, and 0.3 fs. An intermediate smoothing layer can be formed by applying the low-pass filter on the horizontal direction and storing the results in memory, with a final smoothed layer including filtering in the vertical direction being formed prior to blending. A 2-dimensional median filter can be used supporting three sizes: 1×1, 3×3, and 5×5.

At step 23, a first edge layer is determined in a manner similar to that discussed with respect to step 12 of FIG. 1.

At step 24, the first image and the first other layer are blended in a manner similar to that discussed with respect to step 13 of FIG. 1.

FIG. 7 illustrates another method in accordance with an embodiment of the present disclosure. Steps 41, 42, and 43 are similar in function to steps 21, 22, and 23 previously discussed.

Step 44 is similar to step 41 but receives a second source image layer instead of the first source image layer.

Step 45 is similar to step 42, but a second edge layer based on the second source image layer is determined.

Step 46 is similar to step 43, but the second source image layer is blended with the second other layer instead of the first source image layer being blended with the first layer. The result of step 46 is a second blended video layer.

At step 47, a composite image combining the first and second blended video layers is provided. It will be appreciated that typically, additional steps, analogous to steps 41-43 will be performed to generate a third blending layer from which a composite image is formed.

FIG. 8 illustrates, in block diagram form, a data processing system that may represent a general purpose processing system, such as a personal computer or a personal digital assistant, or an application specific system such as a media server, internet appliance, home networking hubs, and the like. The system 500 is illustrated to include a central processing unit 510, which may be a conventional or proprietary data processor, memory including random access memory 512, read only memory 514, input output adapter 522, a user interface adapter 520, a communications interface adapter 524, and a multimedia controller 526.

The input output (I/O) adapter 526 can be further connected to various peripherals such as disk drives 547, printer 545, removable storage devices 546, as well as other standard and proprietary I/O devices.

The user interface adapter 520 can be considered to be a specialized I/O adapter. The adapter 520 is illustrated to be connected to a mouse 540, and a keyboard 541. In addition, the user interface adapter 520 may be connected to other devices capable of providing various types of user control, such as touch screen devices.

The communications interface adapter 524 is connected to a bridge 550 such as is associated with a local or a wide area network, and a modem 551. By connecting the system bus 502 to various communication devices, external access to information can be obtained.

The multimedia controller 526 will generally include a video graphics controller capable of generating smoothed images in the manner discussed herein that can be displayed, saved, or transmitted. In a specific embodiment illustrated the multimedia controller 526 can include a system of FIG. 2, which can be implemented in hardware or software. Software implementations can be stored in any on of various memory locations, including RAM 512 and ROM 514, in addition software implementation software can be stored in the multimedia controller 526. When implemented in software, the system of FIG. 2 may be a data processor within the controller 526 for executing instruction, or it maybe a shared processor, such as CPU 510.

The preceding detailed description of the figures, reference has been made to the accompanying drawings which form a part thereof, and to which show by way of illustration specific embodiments in which the invention may be practiced. It will be appreciated that many other varied embodiments that incorporate the teachings herein may be easily constructed by those skilled in the art. For example, intermediate edge layers can be used to derive the final edge layer used by the blending controller 160. Once such intermediate layer would contain pixel information that indicates horizontally adjacent pixel information. For example, FIG. 9 illustrates an intermediate table, where each pixel stores the number of edge pixels within +/−1 horizontal pixel in the lower four-bits of the byte, and the number of edge pixels at +/−2 horizontal pixels in the upper four-bits of the byte. Such an intermediate layer allows for efficient calculation of the final edge layer. For example, the number of edge pixels within +/−pixels for a pixel P(x, y) can be determined by adding the lower four bits of pixels P(x, y−1), P(x,y), and P(x, y+1). In a similar manner, the number of edge pixels at +/−2 pixels for a pixel P(x, y) is determined by adding the upper four bits of P(x, y−2), P(x, y−1), P(x,y), P(x, y+1), and P(x, y+2) to the lower four bits of P(x, y−2) and P(x, y+2). Utilizing an intermediate layer in this fashion reduces the computations needed to calculate the weighted edge values by reusing the horizontal edge data. Accordingly, the present disclosure is not intended to be limited to the specific form set forth herein, but on the contrary, it is intended to cover such alternatives, modifications, and equivalents, as can be reasonably included within the spirit and scope of the invention. The preceding detailed description is, therefore, not to be taken in a limiting sense, and the scope of the present disclosure is defined only by the appended claims. 

1. A method comprising: receiving a first video layer of a video image; determining a first edge layer based on the first video layer; and blending the first video layer with a first other layer, wherein control of the blending is based upon the first edge layer.
 2. The method of claim 1, further comprising: receiving a second video layer of the video image; determining a second edge layer based on the second video layer; and blending the second video layer with a second other layer, wherein the blending is controlled by the second edge layer.
 3. The method of claim 2, further comprising: providing composite of the first video layer and the second video layer for display on a display device.
 4. The method of claim 1, wherein the first other layer is a filtered representation of the first video layer.
 5. The method of claim 4, wherein the filtered representation is a smoothed representation of the first video layer.
 6. The method of claim 1, wherein the first video layer is one of an R, G, and B layer.
 7. The method of claim 1, wherein the first video layer is one of a Y, U, and V layer.
 8. The method of claim 1, wherein blending is based upon a horizontal edge component.
 9. The method of claim 8, wherein the blending is independent of a vertical edge component.
 10. The method of claim 1, wherein blending is based upon a vertical edge component.
 11. The method of claim 10, wherein the blending is independent of a horizontal edge component.
 12. The method of claim 1, wherein determining the first edge layer comprises determining a gradient for a plurality of pixels of the first video layer.
 13. The method of claim 12, wherein determining the first edge layer comprises determining a horizontal gradient for the plurality of pixels of the first video layer.
 14. The method of claim 13, wherein determining the first edge layer comprises determining a vertical gradient for the plurality of pixels of the first video layer.
 15. The method of claim 12, wherein determining the first edge layer comprises determining a vertical gradient for the plurality of pixels of the first video layer.
 16. The method of claim 15, wherein the first edge layer includes an edge indicator at a pixel, when a gradient at the pixel is greater than a predefined value.
 17. The method of claim 16, wherein the predefined value is user definable.
 18. A method comprising: determining an edge layer based upon an image layer; determining a filtered layer based upon the image layer; determining a blending ratio for each pixel of a blended image layer, wherein the blending ratio is to control blending the image layer and the filtered layer to form the blended image layer, and the blending ration is based on the edge layer.
 19. The method of claim 18, wherein the filtered layer represents a smoothed image.
 20. A system comprising: a noise filter coupled to receive a source image and to provide a smoothed image; an edge detector coupled to receive the source image and to provide an edge layer; a blending controller coupled to receive the smoothed image and the edge layer and to provide a destination layer based upon the source layer and the destination layer. 